package dependenceInversion;

import org.omg.CORBA.PUBLIC_MEMBER;

/**
 * @Author: 蔡翔
 * @Date: 2019/11/8 15:45
 * @Version 1.0
 */
public class Geely {
    private ICourse iCourse;


    public void setiCourse(ICourse iCourse) {
        this.iCourse = iCourse;
    }

    public void studyJavaCourse(){
        System.out.println("Geely 在学习java 课程");
    }
    public void studyFECourse(){
        System.out.println("Geely 在学习FE课程");
    }

    public void studyImoocCourse(){
        this.iCourse.studyCourse();
    }
}
